package cn.wangzg.course0402;

import android.app.Application;

/**
 * Time: 2020/3/12
 * Author: wangzhiguo
 * Description: 功能描述
 */
public class MyApp extends Application {
    private static MyApp instance;
    private User user;
    private Person person;

    public static MyApp getInstance(){
        return instance;
    }

    @Override
    public void onCreate(){
        super.onCreate();
        instance = this;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
